package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.common.entity.XlsCartEntity;
import io.renren.dto.XlsCartDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 购物车
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-11
 */
@Mapper
public interface XlsCartDao extends BaseDao<XlsCartEntity> {

    List<Map<String, Object>> getCartInfo(XlsCartEntity xlsCartEntity);

    int deleteCartByIds(String[] cartId);

    List<XlsCartDTO> selectCartList(XlsCartDTO cart);

    List<Map<String, Object>> selectByCommodityUserId(XlsCartDTO cart);
}